@import "../config/basic";

:global {
  .mg1 {
    margin: 8px;
  }
  .mg2 {
    margin: 16px;
  }
  .pd1 {
    padding: 8px;
  }
  .pd2 {
    padding: 16px;
  }
  .pdt1 {
    padding-top: 8px;
  }
  .pdb1 {
    padding-bottom: 8px;
  }
  .pdl1 {
    padding-left: 8px;
  }
  .pdr1 {
    padding-right: 8px;
  }

  .mgl1 {
    margin-left: 8px;
  }
  .mgl2 {
    margin-left: 16px;
  }
  .mgl3 {
    margin-left: 24px;
  }

  .mgr1 {
    margin-right: 8px;
  }
  .mgr2 {
    margin-right: 16px;
  }
  .mgr3 {
    margin-right: 24px;
  }

  .mgt1 {
    margin-top: 8px;
  }
  .mgt2 {
    margin-top: 16px;
  }

  .mgt3 {
    margin-top: 24px;
  }

  .mgt5 {
    margin-top: 40px;
  }
  .mg7t {
    margin-top: 56px;
  }

  .mgb1 {
    margin-bottom: 8px;
  }

  .mgb2 {
    margin-bottom: 16px;
  }

  .mgb3 {
    margin-bottom: 24px;
  }

  .width50 {
    width: 50px;
  }

  .width80 {
    width: 80px;
  }

  .width100 {
    width: 100px;
  }

  .width120 {
    width: 120px;
  }

  .width150 {
    width: 150px;
  }
  .width175 {
    width: 175px;
  }

  .width200 {
    width: 200px;
  }

  .width240 {
    width: 240px;
  }
  .width360 {
    width: 360px;
  }

  .width450 {
    width: 450px;
  }

  .fl {
    float: left;
  }

  .fr {
    float: right;
  }

  /* 清除浮动 */
  .clearfix:after, .clearfix:after {
    content: '\20';
    display: block;
    height: 0;
    clear: both;
  }
  .clearfix, .clear {
    *zoom: 1;
  }

  .txtright {
    text-align: right;
  }

  .txtleft {
    text-align: left;
  }

  .txtcenter {
    text-align: center;
  }

  .lheight40 {
    line-height: 40px;
  }

  .iblock {
    display: inline-block;
  }
  //弹性布局

  .flex {
    display: flex;
  }
  .flex1{
    flex: 1;
  }
  .flex_center_v{
    justify-content: center;
  }
  .flex_center_h{
    align-items: center;
  }

  .center {
    text-align: center;
  }

  .fsize2 {
    font-size: 16px;
  }

  .fsize14 {
    font-size: 14px;
  }

  .fbold {
    font-weight: bold;
  }

  .text-normal {
    .fontColor_2
  }

  .text-info {
    .fontColor_3
  }

  // 页面标题字号

  .fzTitle {

    font-size: 22px;
    color: #262626;
    line-height: 22px;
  }

  // 全局隐藏元素
  .displayHide{
    display: none;
  }

  // 全局显示元素
  .displayShow{
    display: block;
  }

  .lheight30 {
    line-height: 30px;
  }
  //checkbox自动换行
  .checkboxWrap {
    white-space:normal;
  }

  /* use css to set position of modal */
  .vertical-center-modal {
    text-align: center;
    white-space: nowrap;
  }

  .vertical-center-modal:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    width: 0;
  }

  .vertical-center-modal .ant-modal {
    display: inline-block;
    vertical-align: middle;
    top: 0;
    text-align: left;
  }
  .menuLeft {
    &::-webkit-scrollbar {
      width: 10px;
      height: 10px;
    }
    &::-webkit-scrollbar-thumb {
      border-radius: 4px;
    }
  }

  .bodyAnimations-appear {
    opacity: 0.01;
    margin-right: 100%;
  }

  .bodyAnimations-appear.bodyAnimations-appear-active {
    margin-right: 0px;
    opacity: 1;
    -webkit-transition: all .5s;
    transition: all .5s;
  }

  .lineAnimations-appear {
    width: 0;
  }

  .lineAnimations-appear.lineAnimations-appear-active {
    width: 100%;
    -webkit-transition: all .5s;
    transition: all .5s;
  }

  .detail-content {
    width: 100%;
    padding: 30px;
  }

  //解决浏览器自动填充账号和密码
  .hiddenInput{
    visibility: hidden;
    position: absolute;
    z-index: -1;
  }

  .hidden{
    display: none;
  }
  //表单
  .customForm {
    border-bottom: 1px solid @uiColor_7;
    div.ant-form-item {
      margin-bottom: 0;
      border-top: 1px solid @uiColor_7;
      display: flex;
      height: 100%;
    }
    .ant-form-item-label, .ant-form-item-control-wrapper {
      .fontColor_2;
      padding: 8px;
    }
    div.ant-form-item-label {
      max-width: 100px;
      background-color: @uiColor_8;
    }
    div.ant-form-item-control-wrapper {
      width: calc(~"100% - 100px");
      word-break: break-all;
    }
    .ant-row {
      display: flex;
    }
  }
  .fixedForm {
    div.ant-form-item-label {
      max-width: 100px;
    }
    div.ant-form-item-control-wrapper {
      width: calc(~"100% - 100px");
    }
  }

  //form表单数据自动换行
  .auto-wrap {
    .ant-form-item-control-wrapper, .ant-table-tbody .ant-table-row td {
      word-wrap: break-word;
      white-space: normal;
    }
  }
  //弹窗标题
  .modal-title {
    font-weight: bold;
    font-size: 24px;
    .fontColor_1;
  }
  //下划线
  .underline {
    text-decoration: underline;
  }
  //显示省略符号
  .ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }


  /************分割线************/

  /* 右上角按钮 */
  .rightTopButton{
    position: absolute;
    right: 20px;
    top: 60px;
  }
  .pageLayout{
    padding: 0px;
    min-height: calc(100vh - 180px)
    //height: calc(~"100vh - 110px");
    // overflow-y: auto;
  }
  .pageTitle{
    .fontSize_2;
    height: 36px;
    color: #333333;
    line-height: 36px;
    display: flex;
    margin-bottom: 13px;
    align-items: center;
    font-weight: bold;
    button {
      width: 86px;
      height: 36px !important;
      margin-left: 10px;
    }
    .ant-btn-primary {
      margin-left: 16px;
    }
  }

  //副标题
  .subtitle {
    font-family: PingFangSC-Medium,"Microsoft Yahei";
    font-size: 18px;
    color: #333333;
    line-height: 18px;
    color: #262626;
    text-align: left;
    text-indent: 13px;
    border-left: 3px solid @uiColor_1;
    border-radius: 1px;
    font-weight: bold;
  }

  //确定取消按钮
  .btnContainer {
    height:40px;
    padding: 40px 0;
    margin-top: 30px;
    border-top: 1px solid #E0E0E0;
    button {
      border: 1px solid #E0E0E0;
      border-radius: 6px;
      height: 40px !important;
      width: 160px;;
      background: #fff;
      cursor: pointer;
    }
    //确定按钮
    .btnDefined {
      background: @uiColor_1;
    }
    //取消按钮
    .cancle {
      margin-right: 40px;
      .fontColor_2;
    }
  }

  //竖直步骤条
  .ant-tabs-tabpane {
    // margin-top: 14px;
    .ant-steps-item {
      padding-bottom: 54px;
      .ant-steps-head-inner {
        width: 30px;
        height: 30px;
        display: table-cell;
        vertical-align: middle;
      }
      .ant-steps-main {
        padding-left: 24px;
      }
      .ant-steps-title,
      .ant-steps-description {
        font-size: 14px;
        color: #999999 !important;
      }
    }
    .ant-steps-status-process {
      .ant-steps-title {
        color: #333 !important;
      }
    }
  }

  //输入框样式
  textarea,input,button {
    // border: 1px solid @uiColor_26 !important;
    &:hover {
      box-shadow: none !important;
      // border: 1px solid @uiColor_26 !important;
    }
  }

  //主内容区样式
  .mainWrapper {
    box-shadow: 0 0 10px 0 rgba(48,48,50,0.05);
    border-radius: 6px;
    background: #FFFFFF;
    padding: 30px;
  }

  //分内容样式
  .partPanel {
    background: #FFFFFF;
    box-shadow: 0 0 10px 0 rgba(0,0,0,0.05);
    border-radius: 4px;
  }

}

/* global end */
//角色名称
.shopkeeper-role {
  .roleButton1 {
    display: show !important;
  }
  .roloButton2 {
    display: none !important;
  }
}

.netsystem-role {
  .roleButton1 {
    display: none !important;
  }
  .roloButton2 {
    display: show !important;
  }
}

hr {
  display: block;
  clear: both;
  padding: 0;
  border: 0;
  height: 0;
  border-top: 1px solid #eee;
}

// .ant-table-wrapper.smalll{
//   background: #999999
// }

